import React from 'react';
import style from '../index.less';

interface GridProps {
  title: string;
  content: string | number;
}

const Grid: React.FC<GridProps> = props => (
  <div className={style.grid}>
    <div className={style.title}>{props.title}</div>
    <div className={style.content}>{props.content || '暂无'}</div>
  </div>
);

export default Grid;
